/**
 * 
 */
package ihm;


import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 * @author Logan
 *
 */
public class AfficherImage {
	
	public AfficherImage(String chemin, int w, int h) {
		JFrame frame = new JFrame("Image claire");
		JLabel img = new JLabel();
		img.setIcon(new ImageIcon(chemin));
		frame.setSize(w,h);
		frame.setLocation(0, 0);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.add(img);
		frame.setVisible(true);
	}

}
